package com.kly.order.serviceImpl;

import com.kly.OrderTestService;
import com.kly.order.db.dao.OrderTestDao;
import com.kly.order.db.entity.OrderTestEntity;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@DubboService
@Service
public class OrderTestTestServiceImpl implements OrderTestService {
    @Autowired
    private OrderTestDao orderTestDao;

    @Override
    public String queryByOrderId(Long userId) {
        OrderTestEntity orderTestEntity = orderTestDao.selectByPrimaryKey(userId);
        return orderTestEntity == null ? null : orderTestEntity.getName();
    }
}
